<?php
namespace Sys\Controller;
use Todo\Controller\ApiController;

class ConfigController extends ApiController {

    protected function _filter(&$where){
        $where['is_del'] = 0;
        $keyword = I('get.keyword/s');
        if($keyword) $where['_string'] = "title like '%" . $keyword . "%' OR code like '%" . $keyword . "%'";
    }
}